<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta content="telephone=no" name="format-detection">
    <title>查询老赖</title>
    <link rel="stylesheet" href="/laolaipro/Public/Home/css/weui.min.css">
    <link rel="stylesheet" href="/laolaipro/Public/Home/css/top.css">
    
</head>

<body class="bgeee">
    <div class="header-container">
        <div class="weui-cell">
            <div class="weui-cell__hd fs0">
                <img src="/laolaipro/Public/Home/img/lefticon.png" class="slimg" />
            </div>
            <div class="weui-cell__bd texcen">
                <p>查询结果</p>
            </div>
        </div>
    </div>
    <div class="xq_container">
        <div class="pad10 colbbb">失信人资料</div>
        <div class="weui-cells mat0 uinput ">
            <div class="weui-cell">
                <div class="weui-cell__hd">姓名</div>
                <div class="weui-cell__bd">
                    <?php echo ($resdata[0]['name']); ?>
                </div>

            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd">身份证号</div>
                <div class="weui-cell__bd">
                    <?php echo ($resdata[0]['idcardno']); ?>
                </div>

            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd">籍贯</div>
                <div class="weui-cell__bd">
                    <?php echo ($resdata[0]['area']); ?>
                </div>

            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd">关注人数</div>
                <div class="weui-cell__bd">
                    <?php echo ($count); ?>
                </div>
                <div class="fs0">
                    <div class="weui-btn putgz weui-btn_mini bgff0 fs0-8">
                        <?php if(empty($isgz)): ?>未关注<?php else: ?>已关注<?php endif; ?>
                    </div>
                </div>

            </div>
        </div>

        <div class="pad10 colbbb">失信记录</div>
        <div class="weui-cells mat0">

            <?php if(is_array($resdata)): $index = 0; $__LIST__ = $resdata;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$resobj): $mod = ($index % 2 );++$index;?><div class="weui-cell">
                    <div class="weui-cell__hd"><?php echo ($index); ?></div>
                    <div class="weui-cell__bd pad0-10 statusqg">
                        <div class="fs1"><?php echo ($resobj['remark']); ?></div>
                        <div class="fs0-8 colccc"><?php echo ($resobj['year']); ?>-<?php echo ($resobj['datestr']); ?></div>
                    </div>
                </div><?php endforeach; endif; else: echo "" ;endif; ?>

        </div>

    </div>
    <!--<div class="weui-tab footer-container">
        <div class="weui-tabbar bgfff">
            <a href="javascript:;" class="weui-tabbar__item">
                <img src="/laolaipro/Public/Home/img/f1.png" alt="" class="weui-tabbar__icon">
                <p class="weui-tabbar__label">全部(15)</p>
            </a>
            <a href="javascript:;" class="weui-tabbar__item">
                <img src="/laolaipro/Public/Home/img/f2.png" alt="" class="weui-tabbar__icon">
                <p class="weui-tabbar__label">法律案件(5)</p>
            </a>
            <a href="javascript:;" class="weui-tabbar__item">
                <img src="/laolaipro/Public/Home/img/f3.png" alt="" class="weui-tabbar__icon">
                <p class="weui-tabbar__label">企业公示(5)</p>
            </a>
            <a href="javascript:;" class="weui-tabbar__item weui-bar__item_on">
                <img src="/laolaipro/Public/Home/img/f1on.png" alt="" class="weui-tabbar__icon">
                <p class="weui-tabbar__label">私人曝光(5)</p>
            </a>
        </div>
    </div>-->
</body>

<script src="/laolaipro/Public/Home/js/jquery.js"></script>
<script src="/laolaipro/Public/Home/js/zepto.min.js"></script>
<script src="/laolaipro/Public/Home/js/layer/layer.js"></script>
<script src="/laolaipro/Public/Home/js/public.js"></script>

    <?php if(empty($isgz)): ?><script>
        $(".putgz").on('click',function () {
            var name = "<?php echo ($resdata[0]['name']); ?>";
            var idcardno = "<?php echo ($resdata[0]['idcardno']); ?>";
            var area = "<?php echo ($resdata[0]['area']); ?>";
            var snum = "<?php echo (count($resdata)); ?>";
            var data1 = {
                "name" : name,
                "idcardno" : idcardno,
                "area" : area,
                "snum" : snum
            };
            requestUrl("<?php echo U('Jubao/addgz');?>",data1,function (res) {
                if ( res.message == "success" ) {
                    window.location.reload();
                }else{
                    layer.msg(res.message);
                }
            }.bind(this))
        });
    </script><?php endif; ?>

</html>